package com.sharer.last.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sharer.last.base.model.BasePO;
import lombok.*;

import java.util.Date;

/**
 * 登录日志
 *
 * @ClassName LoginLogPO
 * @Author WangJin
 * @Date 2023/5/5 17:35
 * @Description
 * @Version 1.0
 */
@TableName("login_log")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
public class LoginLogPO extends BasePO {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名称
     */
    private String username;

    /**
     * ip
     */
    private String ip;

    /**
     * ip来源
     */
    private String ipSource;

    /**
     * 操作系统
     */
    private String os;

    /**
     * 浏览器
     */
    private String browser;

    /**
     * 登录状态
     */
    private Boolean status;

    /**
     * 操作信息
     */
    private String description;

    /**
     * 操作时间
     */
    private Date   createTime;

    private String userAgent;
}
